package com.rpframework.utils;

/**
 * 对象工具类
 * Created by jump on 2016/8/4.
 */
public class ObjectUtils {
    /**
     * 类型转换
     *
     * @param value 值
     * @param c     class
     * @param <T>   泛型
     * @return 值
     */
    public static <T> T parse(Object value, Class<T> c) {
        if (value != null || c != null) {
            //noinspection unchecked
            return (T) value;
        }
        return null;
    }
}
